package com.sino.second.util;

import java.util.Calendar;

import com.opensymphony.xwork2.ActionContext;

public class YearSecurityFunction 
{
public static boolean checkingYear()
{
 String loginYear=(String)ActionContext.getContext().getSession().get("CURRENTYEAR");
 String currentYear=new Integer(Calendar.getInstance().get(Calendar.YEAR)).toString();
 if(loginYear.equals(currentYear))
 {
	 return true;
 }
 return false;
}
}
